//
//  DeleteManagerViewController.m
//  leo
//
//  Created by LIU YU LIN on 15/11/14.
//  Copyright © 2015年 mdx. All rights reserved.
//

#import "DeleteManagerViewController.h"

@interface DeleteManagerViewController ()

@end

@implementation DeleteManagerViewController

@synthesize popUpView;
@synthesize confirmButton;
@synthesize cancelButton;
@synthesize motherWindow;

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setBackGroudView];
    [self initButtonActions];

    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
    if(self.view.window==nil)
    {
        self.view=nil;
    }
}

- (void)setBackGroudView{
    [self.view setFrame:[UIScreen mainScreen].bounds];
    [self.view setBackgroundColor:[UIColor colorWithWhite:0.0 alpha:0.4]];
    self.popUpView.layer.cornerRadius = 8;
}

-(void)initButtonActions{
    [confirmButton addTarget:self action:@selector(submitAction) forControlEvents:UIControlEventTouchDown];
    [cancelButton addTarget:self action:@selector(cancelAction) forControlEvents:UIControlEventTouchDown];
}

-(void)submitAction
{
    
    //TODO:
    self.motherWindow.hidden=YES;
    
}

-(void)cancelAction
{
    self.motherWindow.hidden=YES;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
